package Text_006;

import java.util.Scanner;

public class ArryReversal {

	public static void main(String[] args) {
			Scanner scanner = new Scanner(System.in);
			System.out.println("请输入一个字符串：");
			String str = scanner.next();
			String strcope = "";
			for(int i=0;i<str.length();i++) {
				//定义一个字符c,来接收单个字符
				char c = str.charAt(str.length()-1-i);
				//拼接
				strcope = strcope+c;
			}
			System.out.println(strcope);

	}

}
